<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>热门关键词</title>
    <link rel="stylesheet" href="/static/css/layui.css">
    <link rel="stylesheet" href="/static/css/admin.css">
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <form action="/index/admin/hot.html" method="get" class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">选择框</label>
                <div class="layui-input-block">
                    <select name="type" lay-verify="required">
                        <option value="total">总量</option>
                        <option value="lastnum">上周</option>
                        <option value="currnum">本周</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">数量</label>
                <div class="layui-input-block">
                    <select name="num" lay-verify="required">
                        <option value="10">10</option>
                        <option value="20">20</option>
                        <option value="30">30</option>
                        <option value="40">40</option>
                        <option value="50">50</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" type="submit">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
        <div class="layui-card">
            <div class="layui-card-header">搜索词列表</div>
            <div class="layui-card-body">
                <div class="layui-btn-container">
                    <table class="layui-table">
                        <tr>
                            <td>搜索词</td>
                            <td>指数</td>
                            <td>操作</td>
                        </tr>
                        {volist name='hot' id='h'}
                        <tr>
                            <td>{$key}</td>
                            <td>{$h}</td>
                            <td><a href="/search-{$key}.html" target="_blank" class="layui-btn layui-btn-xs">查看</a></td>
                        </tr>
                        {/volist}
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/layui.js"></script>
<script>
    layui.use('form', function(){
        var form = layui.form;
    });
</script>
</body>
</html>